import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询服务事项基础信息全部
export const publicBasicInfoList = data => {
    return $get('/risk/publicBasicInfo/list', data)
}

// 查询服务事项基础信息列表
export const publicBasicInfoPage = data => {
    return $get('/risk/publicBasicInfo/page', data)
}

// 新增服务事项基础信息
export const publicBasicInfoAdd = data => {
    return $post('/risk/publicBasicInfo/add', data)
}

// 查询服务事项基础信息详情
export const publicBasicInfoDetail = id => {
    return $get('/risk/publicBasicInfo/detail/'+ id)
}

// 更新服务事项基础信息
export const publicBasicInfoUpdate = data => {
    return $post('/risk/publicBasicInfo/update', data)
}

// 删除服务事项基础信息
export const publicBasicInfoDelete = id => {
    return $post('/risk/publicBasicInfo/delete/'+ id)
}

// 导出服务事项基础信息
export const publicBasicInfoExport = (data,fileName) => {
    return $download('/risk/publicBasicInfo/export',data, fileName)
}
